package academic.ui.client.view;


import java.util.ArrayList;

import ui.client.GenericContainerTag;

import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.ViewImpl;


import academic.ui.client.config.CSSConstants;
import academic.ui.client.presenter.MyGroupsPresenter;
import ecommerce.soco.shared.GWT_Group;

public class MyGroupsView extends ViewImpl implements MyGroupsPresenter.MyView {

	GenericContainerTag groupsDiv = new GenericContainerTag("div");
	TextBox searchGroupsField = new TextBox();
	
	@Inject
	public MyGroupsView(CSSConstants css) {
		GenericContainerTag createGroupDiv = new GenericContainerTag("div");
	}
	
	@Override
	public Widget asWidget() {
		return groupsDiv;
	}

	@Override
	public void showMyGroupsTab(ArrayList<GWT_Group> result) {
		groupsDiv.clear();
		groupsDiv.add(new GenericContainerTag("h3","Tired of buying deals then having no one to take " +
				"advantage of the deal with you?  We certainly were.  That is why we're " +
				"creating A new concept called 'Group Purchasing'" +
				". At socodeals we are hard at work designing features that streamline your " +
				"online social experience with the real world.  Groups " +
				"will bring you even closer to your friends & colleagues building even more value into our amazing deals."));
	}
	
	
	
}
